package com.accp.service;


import com.accp.pojo.Author;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AuthorService{
    /**
     * 注册用户
     * @param author
     * @return
     */
    int insertSelective(@Param("Author") Author author);
    /**
     * 验证用户名是否存在
     * @param name
     * @return
     */
    List<Author> VerificationName(String name);
    /**
     * 登录方法
     * @param name
     * @param Pwd
     * @return
     */
    Author Signin(@Param("name")String name,@Param("Pwd")String Pwd);
}